package demo2;

import demo1.Animal;

public class Dog extends Animal{
    public String color;
    public void func() {
        super.name  ="出生";
        System.out.println("你好牛逼！");
        System.out.println("我就访问了"+super.name);
    }

    public static void main(String[] args) {
        Animal animal = new Animal();
        Dog dog  =new Dog();
        dog.func();
    }
}
